;$(function(){
	//点击
	$(".member_set").delegate('li', 'click', function() {
		var ix = $(this).index();
		switch(ix){
			case 0:
				window.location.href = "member_info.html";
			break
			case 1:
			break
			case 2:
			break
			case 3:

		}
  });
  
  // 返回按钮
  $(".member_fanhui").click(function() {
    window.location.href = "my.html"
  })

	//退出账号
	$(".new_add").click(function() {
    new ajax({
      url: 'account/account/logout.do',
      type: 'post',
      dataType: 'json',
      contentType: 'application/json;charset=utf-8',
      data: JSON.stringify({}),
      success: (function(data) {
        if (data.respCode == "S") {

          clearCookie('accessToken')
          localStorage.removeItem('userInfo')
          localStorage.removeItem('cartBadge')
          localStorage.removeItem('categoryHistory')
          localStorage.removeItem('searchHistory')
          $('.pop_window1').children().html("您已退出账号").end().show(function() {
            const this_ = $(this);
            setTimeout(function(){
              this_.hide();
              window.location.href = "../";
            },800);
          });

        } else {

        }
      })
    })
	});


	//返回
	$(".member_fanhui").click(function() {
		window.location.href="my.html";
	});
});